package cn.caidabao.camunda_demo.util.show;

import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * @author cjn
 * @since 2024-07-17 16:14
 */
@Component
public class DefaultConverter extends ContentFieldConverter{
    @Override
    public Map<String, Object> convert(List<Object> params) {
        return params.stream().map(String::valueOf).collect(Collectors.toMap(a->a,a->a));
    }
}
